end/check: Fix endianness issues