fix little endian support *sigh*