copied fixation to little endianness into code, needs to be placed before checksum calculation