fixed error with codemirror