Fix mref searching