fixed files with same name, but different extension being overwritten