Fixed bug when no results were returned