fixes nginx template switcher