fix bug loading null pubkey from binary