fixed MemoryManager