Minor fixes to rendering code