Why does this not work?

So basically i have this function, which is actually from unreal engine official tuturial about moba ai, but it does return only first option to my minions, i’m pretty sure the maths is right in this function (1st screenshot), “Team” can be 0 or 1 and “Lane” can be 0, 1 or 2. Team and Lane variables in my ai is set correctly but when it comes to maths, it only returns the first option, all the time, even if Team = 1, and Lane = 2 (which after the calculations must give 5 (6th option)) So i need help to see where is the problem. Thanks.

The function is on “1.png”

I checked the index of select node, it’s always 0, even though Team and Lane are not, what is the problem?