Fix screenshots and certain UI rendering problems.