Resolved AI/mech flags setting issue.