Fix nasty-looking rendering glitch.

Not entirely sure why this works.