mem fix problem