fix read_bitpacked byte count