bugs on MemoryBuffers