As a few others have mentioned, there is an issue with the icons being incorrect for the array position once you've added a certain number of entries. In this example with only the encounters UI loaded it works as expected, but as soon as I add a quest (and subsequently the quest icon will now display) and reopen the menu, the icons are not aligned properly.
View attachment 5250
After a little bit of experimentation I believe the issue has something to do with the icons not finding the appropriate 0 index once a new option has been added.
Also seems to occur when the number of entries goes past ten.