Fix issue when searching by 'path'