fix copy bug