fix illegal copy processing