fixed NPE that is caused by a the location when a player respawns