fix for switching back to a theme without a custom template dir