fix mac address bug