fix for MemFile buf dynamic alloc