output file fix