Fixing some bugs in Base58