output filename fix