Fix bug in nginx setup