fixed error in schedule