Fix a host of rendering problems.