Fixed bug in ChatPage