Fixed enable/disable editor class isssue