Fixing a bug in the chat app, when it gets instantiated multiple times
Fixing the typing in chat