bugfix, wasnt flusing pileup buffer