fixing bug in nginx template