Fixed an issue with disabling task parallelism in scheduler