Fix key build problem for schedules