just a small oversight in copy function