Fix bug in PathVector::extract