Fixed wrong reference to MEM instead of DM