fixed bug in calculation of article attributes