Corrected the selectors in determineConnect