writeTrustedFingerprint not calling correct function