After some more testing i got it to be able to select pokemon after the sixth, however if i try to select the sevent pokemon it selects the cancel button instead, so i'm thinking of to move/remove it, as you can leve the screen by clicking escape.
current code in my Pscreen_party script section...