bug fix on grand totals