Fix schedules scoping