Problem with console commands

Hi, i turned cpu into a player using “controlai” command for fixing a bug with cpu trying to fight gnoles (game crashed every time) and now i can’t change it back to ai again because it crashes when i use “gosolo”. Is there any other command i can use?