fix bit sampling bug about big endianness.