Chat: Bugfix for connection state