Fix connection setup.