diff --git a/instances/views.py b/instances/views.py
index 45b661a..b31e5ea 100644
--- a/instances/views.py
+++ b/instances/views.py
@@ -651,20 +651,6 @@ def instance(request, compute_id, vname):
addlogmsg(request.user.username, instance.name, msg)
return HttpResponseRedirect(request.get_full_path() + '#network')
- if 'change_options' in request.POST:
- instance.is_template = request.POST.get('is_template', False)
- instance.save()
-
- options = {}
- for post in request.POST:
- if post in ['title', 'description']:
- options[post] = request.POST.get(post, '')
- conn.set_options(options)
-
- msg = _("Edit options")
- addlogmsg(request.user.username, instance.name, msg)
- return HttpResponseRedirect(request.get_full_path() + '#options')
-
if 'add_owner' in request.POST:
user_id = int(request.POST.get('user_id', ''))
@@ -727,6 +713,20 @@ def instance(request, compute_id, vname):
addlogmsg(request.user.username, new_instance.name, msg)
return HttpResponseRedirect(reverse('instance', args=[compute_id, clone_data['name']]))
+ if 'change_options' in request.POST:
+ instance.is_template = request.POST.get('is_template', False)
+ instance.save()
+
+ options = {}
+ for post in request.POST:
+ if post in ['title', 'description']:
+ options[post] = request.POST.get(post, '')
+ conn.set_options(options)
+
+ msg = _("Edit options")
+ addlogmsg(request.user.username, instance.name, msg)
+ return HttpResponseRedirect(request.get_full_path() + '#options')
+
conn.close()
except libvirtError as lib_err: