fixed linux host endian bug