Fixed bug with calendar on last day of year