fix bug date in calendar