fixed chat errors