* minor fixes in search for referenced indexes
* Fixed reference indexed search