bitmask correction