fix bug with tree output

buffer was not emptied between loci