fix bug with access to templates from nginx