diff --git a/editor.html b/editor.html
index 977cc37..c35d5ba 100644
--- a/editor.html
+++ b/editor.html
@@ -72,8 +72,8 @@
Hello
@@ -87,10 +87,15 @@
diff --git a/editor.js b/editor.js
index b331546..c60133c 100644
--- a/editor.js
+++ b/editor.js
@@ -299,7 +299,7 @@ function addState() {
var nodeId = stateIdCounter ++;
var x = newStateCoords.x;
var y = newStateCoords.y;
- state = {id: nodeId, x: x, y: y, name: 'state_' + nodeId, fx: x, fy: y, val: 5};
+ state = {id: 'state_' + nodeId, x: x, y: y, name: 'state_' + nodeId, fx: x, fy: y, val: 5};
workflow.states.push(state);
updateGraph();
select(state);