Fixed a serious output bug, buffers weren't being cleared after flushed.

So I obviously feel much better about this version, looks like it works
how it should.