Fixed compatibility issues with new model rendering code.