Fixes crash after unlocking secret.