Fix bug in daily rollover