fix theme resolution in template includes