Fix for uninitialized minVertex.