fix the calender display bug