Correct bugs of editor.