fixed a bug with daysOfTheWeek option.