fixed chat bug