fixed byteswap in MAC