some bugs in schedule fixed