fixed mesh simplification bug