diff --git a/runWorkflowPhaeo.py b/runWorkflowPhaeo.py
index 1aede4a03d60106c67aede5e582ff3285582f498..286a3b8f34f0f9f675c75285902267ff43860b9f 100644
--- a/runWorkflowPhaeo.py
+++ b/runWorkflowPhaeo.py
@@ -41,12 +41,12 @@ class RunWorkflow(speciesData.SpeciesData):
     def set_galaxy_instance(self, config):
 
         # Set the instance url attribute --> TODO: the localhost rule in the docker-compose still doesn't work on scratchgmodv1
-        instance_url = "http://localhost:{0}/sp/{1}/galaxy/".format(
+        self.instance_url = "http://localhost:{0}/sp/{1}/galaxy/".format(
             config[constants.CONF_ALL_HTTP_PORT],
             self.genus_species)
 
         self.instance = utilities_bioblend.get_galaxy_instance(
-            instance_url=instance_url,
+            instance_url=self.instance_url,
             email=config[constants.CONF_GALAXY_DEFAULT_ADMIN_EMAIL],
             password=config[constants.CONF_GALAXY_DEFAULT_ADMIN_PASSWORD],
         )