added error check to fetch results to printf and continue