fix for variable pubkey size in header