fix #823 empty search gives no results