fix abnormal behiver for chat

Signed-off-by: xiehuc <xiehuc@gmail.com>