biginteger fixes