fix chat sample