Fix connection toggle problems.