fix typo in set_schedule