fixing schedules display when there are no leaves for the day