Set player controller is not working

Ive noticed in a game that im working on that the controller and the keyboard are both bound to being first player (player 0) when the check box that says automatically assign gamepad to player 1 is checked, they are seperate, but the gamnepad is always player 1 which screws up the ui in my game because there is no player 0. Ive been trying this

but that print string always prints -1 for the character id, and the ui now thinks there are no player controllers in the game, and it is not possessing the character that is getting spawned in the game.