fix bug - wrong name for editor var