Fix bug related to concatenating results during large searches