fix refbits