fixing chat bug