Bugfixes in chatclient