Fix indexed list bug that crashed the app when performing a search