Fixed bug with AI targeting