diff --git a/lib/authorization.rb b/lib/authorization.rb
index <HASH>..<HASH> 100644
--- a/lib/authorization.rb
+++ b/lib/authorization.rb
@@ -1,6 +1,6 @@
 module OpenTox
 
-  if defined?($aa) and $aa.has_key?(:uri) and !$aa.nil?
+  if defined?($aa) and $aa.has_key?(:uri) and !$aa[:uri].nil?
     AA = $aa[:uri] 
   else
     AA = "https://opensso.in-silico.ch" #if not set in .opentox/conf/[SERVICE].rb
AA fix fix fix :(