fixes for nginx template