fixes for codemirror instance in groups