Fixes the mac address assignment problem