fix nginx setup bug