Problem navigating between buttons on different instances

Hi everyone, I ran into a problem while creating a modal dialog for the interface. I have two instances of buttons: there are four buttons from one instance on the interface, and one button from the other instance is already there. When I try to switch between buttons using the gamepad, I can only switch between the buttons from one instance, but if I turn them off, I end up on a button from the other instance. How can I make it so that I can switch between buttons from different instances?