Fix CodeMirror rendering issue