fix for little endian