Fixed the day-reset error.