fix weekday bug