Fixed bug where non-overdue events were being shown as overdue in the calendar.