Bugfix Invalid argument supplied for foreach()

when no schedules
Fix #61