Fixed bug preventing the results from displaying