fixed scheduled Task bug