fixed copy bug if trying to copy to the same file