Fixed a calendar related bug.