Fix for not returning the scheduled task