fix some cairo miss usage