fixed the chat route issue