Fixed loop issue that prevented bot responses