diff --git a/page.html b/page.html
index 477b2f5be18ad518ea736ecdf87cba288142c464..9ff768d9d37d1990f231db18577fcfa438e97e31 100644
--- a/page.html
+++ b/page.html
@@ -1,5 +1,4 @@
 {% extends "templates/page.html" %}
 
 {% set extra_resources = {'n_gpus' : 3} %}
-
-extra_resources.update = {'n_gpus' : 2}
\ No newline at end of file
+extra_resources.update = ({'n_gpus' : 2})
\ No newline at end of file
diff --git a/spawn.html b/spawn.html
index ff9cbeab6d7a794dc727cf43f8af981f030b7139..e106482682c633bed06c15ffaa63d70ba87b1a91 100644
--- a/spawn.html
+++ b/spawn.html
@@ -8,7 +8,7 @@
 {% block heading %}
 <p>Number of GPUs: {{ extra_resources.n_gpus }}</p>
 <label for="gpus">GPUs</label>
-<input class="form-control input-lg" type="range" name="gpus" value="{{ n_gpus }}" min="0" max="4" oninput="this.nextElementSibling.value = this.value"/>
+<input class="form-control input-lg" type="range" name="gpus" value="{{ extra_resources.n_gpus }}" min="0" max="4" oninput="this.nextElementSibling.value = this.value"/>
 <output>{{ n_gpus }}</output>  
 <br/>
 <label for="cores">CPUS</label>