fix bugs that duplicate mac could be imported