another fix for flash endianness