Fix creating schedule