Fixed chat history bug on client