fixed bug with nginx config generation