Fixed bug where results would be empty