Little endian cleanup