fixed issue with only returning one result