fixed to codemirror workding