Fix a bug with the outputFilename