Fixing connection state dialog;