fix for codemirror visibility