Fixed an issue with copy().