fix the bug for non-recurring schedules to be scheduled correctly