Fix some mask rounding.