fix session wbuffer