fixed a bug with the calendar that involved wrong dates displaying for certain months who have sunday as the last day of the month