fix bitstring api change