Bugfix in logn to bigint assignment

Need to clear out the old value before adding the digits of the new one.