fixed typing chat bug