GCP-6385 fix issue in totals