в последний момент

Adverb

 * 1) in the nick of time