fix copy codes