fixed another bug in schedule