fix MAC address detection