fix Buffer pooling but
Merge pull request #159 from somdoron/BufferPoolingBug

fix Buffer pooling bug