fixed localMAC variable