Fixed public key initialization bug