fix removing mask canvases