fixed update of mref