fixed chat bugs