Fixed bug when searching without any entries