Fix get_bits