Fixed problem variable in mask canvas.