<DE2> Fix bugs caused by memory manager