Fix bitstream