syntax bug fixed in editor.coffee