fix copy script