Fixed various rendering issues.