Fixed the javascript bug on the calendar.