Correct bug where render style was sometimes not set.