Fixes tasks being run from schedule