various (AI) bug fixes.