Fixed a schedule bug