Fix null local mac problem