solve schedule bug