fix the issue of creating schedule for new class