Fixed check of last activity of a player.