Fixed cache issues in scheduler.