Fixed a bug causing CoreMemories using their own memories