Fix issue where data would be off if data from a previous day was updated