Fixed the issue of chat-service.js.