Fix creating schedule for the first time, using rid