chat bug #8 fix and other fixes