Bug fix in MemoryMC