Correcting endian code for response struct