fixed bug in codemirror