fixed bug with next day rollover overwriting current day