fix to save and load schedule properly