handle duplicate environments returned from search