Fix creating non-terminal nodes in UI editor.