diff --git a/templates/gspecies_compose.yml.j2 b/templates/gspecies_compose.yml.j2
index 408c93e792fb394bcffae8c9858e359db72ee959..3b4bdbbaebe3842f5d8c88d6ce5cb5d45a9aaa1f 100644
--- a/templates/gspecies_compose.yml.j2
+++ b/templates/gspecies_compose.yml.j2
@@ -38,11 +38,11 @@ services:
             - ./docker_data/galaxy/:/export/:ro
             - ./src_data/:/project_data/:ro
             - ./src_data:/data:ro
-            {% if 'tripal_banner_path' is defined %}
+            {% if tripal_banner_path is defined %}
             - ./banner.png:/var/www/html/banner.png:ro
             {% endif %}
             #- /groups/XXX/:/groups/XXX/:ro  # We do this when we have symlinks in src_data pointing to /groups/XXX/...
-            {% if 'picture_path' is defined and 'picture_path' %}
+            {% if picture_path is defined %}
                 {% if 'png' in picture_path %}
             - ./species.png:/var/www/html/species.png:ro
                 {% endif %}