bugfix: set privateKey