flush buffer if we need to start over from p(x)