Fix task scheduling validation