diff --git a/public/index.html b/public/index.html
index 23be38c..d3669e1 100644
--- a/public/index.html
+++ b/public/index.html
@@ -153,7 +153,7 @@ function enterEditMode() {
function saveProfile() {
- name = $('#form_profile_name').attr('value')
+ name = $('#form_profile_name').val();
console.log('Trying to save profile: ' + name);
var rawdata = graph.series[0].data;
var data = [];