bug fix in daily reset