fix if get mac fail