Fix mru code

a few errors missed during merge