fixed mesh rendering bug (which caused only a part of the mesh to be rendered)