Fixed hasUnsetBit() method