fix codemirror issue