Fix byte array reading.