fix staging upgrade deploy bug