Fix privateKey loading.