fix for templates not showing up with codemirror