Fixed bug in the scheduling calendar