Correction to bitwise operators and button mask