If you activate the script again, it should fix what has been wrong. The AI's finances may be broken for a while though.