fixed spawning out of map