Fix date problem of calendar