fixed bug of chat