UN intervention prevents humanitarian disaster in Upper Nile