make sure to get correct search index