Close any editor before adding a new object
If not closed, the insert command will be executed before the change in the open editor. This is fairly confusing for the user ;)