Fixed teleportation bug