workaround for a bug conerning the last vertex