Fix a bug with Memory.Trace.