fix bug: bignum too big to convert into long, from http://revision-zero.org/history-of-a-bug