Fixed copy function when the system in edit mode.