memory manager fix