One more fix for MemoryStacks of functions.