chat errors fix