reinstate sum(itr), fix #5642.