fix minor problem with recent cherry-picking from cairocanvas