fix a problem of tool MaskDifference