Fixed error with passphrase encryption