avoid null in updatePlayer()