fix searching for multiple lookup_insertion_plans