fixed bug with too long path name and not existing vector index