fix the editor grayed issue.