Fix use of && for bit masking