additional workaround for Canvas-only code