fix on overlong digit problem