fix total product sum