fixed bug at creating schedule