Fix cairo backend glitches.