fixed teleportation bug