solved bug on multiple weekPeriods