handle empty index searches, @evz this was your problem