Fix beyond 30 days stats bug