Fix previous change to work on both endian hosts and targets