Major collision averted