Fix mref indexing
Merge pull request #1510 from erwinwinder/master

Fix mref indexing