More tweaks to make rendering better on ios.