Fixing _analyze to work with root instead of broken multiple indexes