diff --git a/beat/editor/templates/plotter.jinja2 b/beat/editor/templates/plotter.jinja2
index 32ff77e1edd48ba41e1af2c38960f7900d3cdf84..ca312ff5b8855056feb0f62588cca016c98d5f98 100644
--- a/beat/editor/templates/plotter.jinja2
+++ b/beat/editor/templates/plotter.jinja2
@@ -1,6 +1,6 @@
 # You may import any python packages that will be available in the environment you will run this plotter in
 # Environments can change based on the experiment's settings
-{% for ref, lib in uses.items() %}# Library "{{ lib }}" is available under "{{ ref }}"
+{% for ref, lib in uses.uses.items() %}# Library "{{ lib }}" is available under "{{ ref }}"
 {% endfor %}
 
 # Makes sure we won't require an X11 connection