Fixed bugs when player is offline