Quick fix for chats. This fixes #17.
Thanks to Jeronimo17 for the bug report.