fixed scheduler bug

Fixed a bug where it would fail to refresh the entire schedule.