Fixed severe bug in ChatListener.