Fixed add schedule bug.