plug-ins: fix segfault in apply-canvas