Completion or extension of a frame

See @lee2013smooth proposition 8.11 (exercise)
Proposition
Let M be a smooth n-manifold with or without boundary and let (X1,…,Xk) be a linearly independent k-tuple of smooth vector fields on an open subset U of M, with 1≤k<n. Then for each p∈U there exist smooth vector fields Xk+1,…,Xn in a neighborhood V of p such that (X1,…,Xn) is a smooth local frame for M on U∩V.
◼
In other words, we can complete to a frame.
I add that if the manifold M is contractible space then the completion can be performed in the whole M. Since in this case the tangent bundle is trivial,

g:TM→M×Rn

we can apply a linear transformation pointwisely

h:M×Rn→M×Rn

such that h∘g sends Xi to (0,0,1,0,…,0). The desired vector fields are given by the preimage (pre-pushforward, better said) of the rest of the canonical vector fields.