fix chat adapter