Fix BIP39 implementation