sum over wrong dimension