Fix bug in ProcessMemoryPlugin