Fix export of sum dataset callback error