ui: fix an array access derp
Merge pull request #1900 from adrientetar/anchor-ui

ui: fix an array access derp