fixed error with scheduled job