Clicking does not work when beneath a button in UI

I am making a game where you click where you want to go and if you click under any of the invisible turned off buttons in the UI than clicking does not work. Basically clicking only works for whichever thing is displayed first which is a real annoyance.
(Btw I’m sorry I’ve made like twelve posts in the past two weeks but I keep finding bugs and stuff.)

I guess I could spawn in the UI instead but it would be nice if this was fixed.