fix copy method broken in last commit