fix setbit bug