Fix scheduler not working in non-repeating mode

Fixed: Non-repeating tasks were never executed by the scheduler.