fix copy entity