add BE and le\n fix: toNumber() bug