fix error with schedule.js