diff --git a/gwinc/__main__.py b/gwinc/__main__.py
index 51471b518107110bc7e16e7c70b5a70d411b7e93..d73556cf2b731c5b7b63207bf8b4037d8dda9ea9 100644
--- a/gwinc/__main__.py
+++ b/gwinc/__main__.py
@@ -141,6 +141,7 @@ def main():
             budget = load_budget(args.IFO, freq=freq)
         except RuntimeError as e:
             parser.exit(2, str(e)+'\n')
+        name = budget.name
         ifo = budget.ifo
         plot_style = getattr(budget, 'plot_style', {})
         trace = None