fixed null reference exception when a player is destroyed