bitmask fix