fix set bit bug