Correcting file names of duplicate plots