weekday bug fix