Fixes masking in the CanvasRender in dev build