minor bug fixes for DataSum