Fix bug where AI would get unspent actions popup