diff --git a/puzzle/plugins/gemini/gemini_plugin.py b/puzzle/plugins/gemini/gemini_plugin.py
index <HASH>..<HASH> 100644
--- a/puzzle/plugins/gemini/gemini_plugin.py
+++ b/puzzle/plugins/gemini/gemini_plugin.py
@@ -29,7 +29,7 @@ class GeminiPlugin(CaseMixin, VariantMixin, Plugin):
         self.individuals = self._get_individuals()
         self.case_objs = self._get_cases(self.individuals)
         
-        self.mode = app.config['PUZZLE_MODE']
+        self.mode = app.config.get('PUZZLE_MODE', 'snv')
         logger.info("Setting mode to {0}".format(self.mode))
         
         logger.debug("Setting can_filter_gene to 'True'")
Fixed problem with test when 'PUZZLE_MODE' did not exist in app