Fix bug in passphrase flushing loop.