fix bitfield