. "respects the order, warrant or other document, or the authority by which, or in pursuance where of such person was brought into or is confined in any such place, and any such order, warrant or document may be amended accordingly." . . .