fixing possible crash that might occur when no indexes are present and a search is performed
0.1.6