fix endianness error to match rum-ba