fix searching of index