Fix the bitmask problem.