minor mem fix