bug fix to teabot