fix bug in drawcalendar