fixed bug-wasn't deleting when inserting the copy)