Boss Jim McIntyre admitted Dundee had luck on their side as they held on for a replay against Queen of the South in their Scottish Cup fourth round tie.
Prolific striker Stephen Dobbie scored his 33rd goal of the season to put the visitors in front, but Jesse Curran levelled just before the break.
The replay will take place on January 29, and McIntyre said: "I thought Queen of the South were better than us, so I'm just glad we're still in the cup and have another chance to rectify that performance.
"I think we all know it was short of what we are looking for.
"These cup games are always difficult. You just have to look around and see there's been a few shocks elsewhere.
"Jesse's goal just before half-time was crucial. It was about the first moment of quality we had.
"Let's not forget, though, that Queens are also on a brilliant run of form and beat Ross County 4-0 the week before, and they've just gone and put Motherwell out of the cup.
"They're scoring goals freely but we must do better."
Queens boss Gary Naysmith said: "I'm very proud of how we played and just a little disappointed not to have made it through at the first attempt.
"For us to come here as a Championship club and put on that kind of performance was incredible.
"It's going to be another difficult game down in Dumfries but we'll give it our best shot and see if we can pull it off on the night."
ga('create', 'UA-72310761-1', 'auto', {'name': 'pacontentapi'});
ga('pacontentapi.set', 'referrer', location.origin);
ga('pacontentapi.set', 'dimension1', 'By Press Association Sport Staff');
ga('pacontentapi.set', 'dimension2', '322fcb50-28b5-4610-a619-6dfe7f27c953');
ga('pacontentapi.set', 'dimension3', 'paservice:sport,paservice:sport:club-news,paservice:sport:football,paservice:sport:match-reports');
ga('pacontentapi.set', 'dimension6', 'story');
ga('pacontentapi.set', 'dimension7', 'composite');
ga('pacontentapi.set', 'dimension8', null);
ga('pacontentapi.set', 'dimension9', 'sport:football');
ga('pacontentapi.send', 'pageview', { 'location': location.href, 'page': (location.pathname + location.search + location.hash), 'title': 'Dundee boss Jim McIntyre: We rode our luck'});