Minor Patch fixing the vertex generation algorithm