diff --git a/plugins/ssh-agent/ssh-agent.plugin.zsh b/plugins/ssh-agent/ssh-agent.plugin.zsh
index 4bd2dedcc..c006f1413 100644
--- a/plugins/ssh-agent/ssh-agent.plugin.zsh
+++ b/plugins/ssh-agent/ssh-agent.plugin.zsh
@@ -97,7 +97,7 @@ else
 fi
 
 # Don't add identities if lazy-loading is enabled
-if ! zstyle -b :omz:plugins:ssh-agent lazy; then
+if ! zstyle -t :omz:plugins:ssh-agent lazy; then
   _add_identities
 fi