Fix a bug with MAC address selection that caused it to always select the first adapter