fixed issue with numDigits