fix average row calculation