fixes spawn problems when a player joins for the first time.