another attempt to fix templates not loading