Bugfix in adding server pubkey