Fix bug in editor.html (debug mode)