Here the plaintiff invoked the aid of the provisional remedy of attachment as ancillary to his action, and the primary question presented by the appeal relates to the validity of the defendant’s undertaking therein. C. S., 815.
It was held in a well reasoned opinion by Clarkson, J., in Bizzell v. Mitchell, 195 N. C., 484, that by giving a bond or undertaking the defendant in attachment is not estopped to traverse the ground on which the warrant was based. And it was also decided in that case that when defendant has given bond the truth of the facts alleged in the affidavit to procure the warrant may be determined before the trial on the merits, or, if demanded, may be tried with the main issue at the time of the trial, and that separate issues, if supported by evidence, may properly be submitted. McIntosh, sec. 812 (3). In the case at bar the allegation of fraudulent concealment of defendant’s property, contained in the original affidavit, was unsupported by any evidence. The basis for issuing the writ, therefore, failed. Upon the trial the alleged ground for attachment was disproved. However, the court below in its discretion permitted the plaintiff to amend the affidavit to allege the nonresidence of defendant, and thus insert as an amendment an admittedly valid basis for attachment of defendant’s property. The effect of the amendment allowed, as it relates to the undertaking and the surety, is one of the principal questions here presented for decision.
*629The power of tbe court to amend process and pleading, both by statute and under the decisions of this Court, is ample. Indeed, to Chief Justice Pearson it seemed that the statute allowed amendments on a scale so liberal that it might well be said “anything may be amended at any time.” Garrett v. Trotter, 65 N. C., 430; Hicks v. Nivens, 210 N. C., 44. This principle has been upheld by this Court in many authoritative cases, in the administration of justice, in order that the right of all the parties might be preserved. Sheldon v. Kivett, 110 N. C., 408; Thornburg v. Burton, 197 N. C., 193. In order that the defendant might be brought into court to answer the plaintiff’s suit, that the defendant’s property be held to await the determination of the litigated questions, irregularities have been frequently disregarded and amendments liberally allowed between the parties.
But amendment may not be permitted where the rights of third persons are injuriously affected. And where the surety on defendant’s undertaking has executed a bond in a substantial sum, in accordance with the statute, to discharge the lien on property which has been attached by virtue of a warrant based solely on an unfounded allegation in the affidavit, the allowance of an amendment thereafter to set up a new ground of attachment would have the effect of imposing on the surety an obligation which he did not assume. The process may be amended to justify the original service or to validate the previous action taken, only when the intervening rights of innocent persons are not prejudiced. Clendenin v. Turner, 96 N. C., 416; Page v. McDonald, 159 N. C., 38; McIntosh Prac. & Proc., sec. 801 (3) (c); McIntosh Prac. & Proc., sec. 487.
When the surety signed the bond he entered into the obligation with reference to the cause as it then stood. Gilna v. Fidelity & Deposit Co., 83 Mont., 231.
When a new element of liability is introduced by the amendment, the surety is discharged. 74 A. L. R., 913 (note); Bryan v. Bradley, 1 N. C. (Taylor’s Reports), 177; Michelin Tire Co. v. Bentel, 184 Cal., 315; Wilson v. Fisk, 22 R. I., 100; 5 American Jurisprudence, sec. 914.
The ruling of the court below denying the motion to discharge the undertaking was based solely on the finding that the defendant was a nonresident. There was no finding, nor evidence, that the only ground for attachment stated in the original affidavit at the time the undertaking was signed by the surety had any foundation in fact. All the evidence was to the contrary. There was error in denying defendant’s motion to release the defendant’s undertaking.
There was sufficient evidence of consideration for the execution of the note sued on, and the exception to the instruction of the court on that issue cannot be sustained.
*630The appellant’s exception to the ruling of the court below in the admission of evidence is without merit.
We conclude that the judgment must be modified by striking out the last paragraph thereof, wherein the motion to release the undertaking was denied, and that in all other respects the judgment be affirmed.
Modified and affirmed.