fix chat conditional