Fixed bitwise and issue