Further bugfixes related to chat/debug.