diff --git a/spawn.html b/spawn.html
index 1fd5cb2093952d64a51d891677c3caf0c72df080..30587fdc98c8f9917066b45ae866ed53eb925132 100644
--- a/spawn.html
+++ b/spawn.html
@@ -12,9 +12,9 @@
 <p> cpu_limit: {{ cpu_limit }} </p>
 <p> {{ profile }} {{ profiles }} </p>
 <p> URL {{url}} </p>
-<input class="form-control input-lg" type="range" name="gpus" value="{{ extra_resources.n_gpus }}" min="0" max="4" />
-<output for="gpus" onforminput="value = gpus.valueAsNumber;"></output>
 <label for="gpus">GPUs</label>
+<input class="form-control input-lg" type="range" name="gpus" value="{{ extra_resources.n_gpus }}" min="0" max="4" />
+<output for="{{ extra_resources.n_gpus }}" onforminput="value = {{ extra_resources.n_gpus }}.valueAsNumber;"></output>
 <br/>
 <label for="cores">CPUS</label>
 <input class="form-control input-lg" type="range" name="cores" value="{{ extra_resources.n_cpus }}" min="0" max="96" oninput="this.nextElementSibling.value = this.value"/>