Fix typo that leads to out of bounds array access on big endian systems