Fixed the issue when a chat message displayed twice