fix output file for debug