fix schedule bug