Fixed player teleporting bug