Fix teleporting when switching character.