Entities can appear at a wrong place. For how to reproduce, download the world file below.
I tried using a repeating command block to /tp all entities into one place, but I saw some entities far away, and they didn't behave normally. But as soon as I came to them, they disappeared.
Sorry for my bad English.