improved mac address fix