diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 92824c5447..3c7e894559 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -2457,7 +2457,6 @@ Session::new_midi_track (const ChanCount& input, const ChanCount& output, bool s failed: if (!new_routes.empty()) { - add_routes (new_routes, true, true, order); if (instrument) { for (RouteList::iterator r = new_routes.begin(); r != new_routes.end(); ++r) { @@ -2481,6 +2480,8 @@ Session::new_midi_track (const ChanCount& input, const ChanCount& output, bool s } } } + + add_routes (new_routes, true, true, order); } return ret;