big int math fixed iterator problem