fixes duplicate days bug