Fix incorrect values when transitioning to a new week.