fixed the rendering of meshes