fixed writeTrustedFingerprints