fix double and sumDigits