Fixed CodeMirror rerender bug