Minor optimization in rendering code.