Fix magic selector for canvas