fix a bug when change orientation and case of macAddr