fix schedule quit bug