fix bug with names in editor