replaced 'continue' with 'next' in schedule.rb