AI: continuing work on bug fix