fixed validation in scheduler