bugfix for missing public_key