Fixed TypeError: list indices must be integers, not list that occured during searches