fixed nginx template issue