correct typo in attribute name for public_key