Huge disaster averted