There is no logic whatsoever which player to control when you want to change to another player. It can be either one nearby or on the other side of the pitch. There is clearly something off with your AI.
Also: i usually set it to manually. Why does it still changes automatically by itself, especially when i expect it the least?