Fix error one or more of the specified arguments are not valid task scheduler