RMMemory bugfix