Correcting the bitmask value check.