prevent errors when trying to copy the a file at the same place