fix schedule script