Fixed clipping bug.

Fixed unwanted clipping on the masked object when inverted.