Fix bug if player is offline