Fix clipping mask bug