fix schedule bug.