AI: try pass by copy instead of by reference on the same bug