Fix bug with EditorMargin disposing.