fixed wrong mesh indexing