Error correction for file name mismatch