error in foreach articles