Fixed setupConnection.