Fixed some chat's bugs