Totals fix for joins
Merge branch 'hotfix/hotfix'