wrong content was copied when file extensions were changed.