fix "undefined" in case of mref search values