Fixed a wrong log message when assigning an AI.