fix a bug, which would get a wrong MAC address