fixed magic endianess