Steps to reproduce:
- Go to https://en.wikipedia.org/wiki/Help:How_to_fix_bunched-up_edit_links
- Scroll down to the last image.
- Click it to open it in MMV.
- Click the link for the previous image.
Expected: You can repeat step 4 a while to go through all the instances of that image.
Actual: You'll see the wrench image, i.e. though you clicked the last image, MMV opened the first one.
A more confusing example is https://de.wikipedia.org/wiki/Hilfe:Bilder#SVG-Dateien. Click the English image. MMV will show you the German one instead.