MemoryManagerTrimThreshold fix