Better detection of vectors on closepath