fixed bugs with weekday patterns