Crude way of preventing crashes with editor undo