Fixed a 1-day-data analysis bug