Fixed another bug in mask canvas.