Fix passphrase retrieval