fixes for renderMesh mode switch