fixed revert buffer bug in thread buffers