fixed bug with weekday