fixed bug where calendar is not displayed correctly if month started on a sunday