try to fix cairo crashes