fix regression bug in stop-copy