diff --git a/pwnagotchi/plugins/default/wpa-sec.py b/pwnagotchi/plugins/default/wpa-sec.py
index 120d716..5c14018 100644
--- a/pwnagotchi/plugins/default/wpa-sec.py
+++ b/pwnagotchi/plugins/default/wpa-sec.py
@@ -85,7 +85,7 @@ class WpaSec(plugins.Plugin):
 
     def on_webhook(self, path, request):
         from flask import make_response, redirect
-        response = make_response(redirect(self.options('api_url'), code=302))
+        response = make_response(redirect(self.options['api_url'], code=302))
         response.set_cookie('key', self.options['api_key'])
         return response