Fix bug where if there are multiple profiles for one network, only connect to the first detected one, not all.