KuhlAI and bugfix