fix output file