endian patch