scheduler: fiexed the switching of waiting circuit to active