bugfix in AI, release 0.3.1