It turns out that this is not a bug?
Before it wasn't so. Previously it was possible to look through the eyes of a spider or creeper.
Mobs disappear, but after the change game mode does not appear again.
It was intended so that mobs are removed and do not appear? Even after exiting the mode.
And how can i remove this issue?