Fix CodeMirror issue