fix add mac to port bug