fixed writing tally result for no_reduce option