fixed a bug where you couldn't switch between editor types.