fix public keys arr