Fixed bug where no results are printed