Fixed a bug with reading scheduleData