Fixed bug in ChatListener