Bugfix for incorrect sum display