fixing upgrade for nginx