fixed error in comparing string to 0 in _total partial