Fix copy hardcode

Fix copy function hardcode