HeapBuffer bug