Workaround for Cairo resolution bug