Bugfix with copy()