Bug fix for showCalendar