The assignments of error relate to the rulings of the court on a motion to enter a discontinuance of the action, and a subsequent motion in arrest of judgment. Both motions are founded on an amendment of the complaint, striking out the name of Wright as a defendant, and discontinuing the suit as to him. The contestation is, whether the effect of the amendment is a discontinuance of the action as against appellant.
The general rule, as settled by our uniform decisions, is not controverted, that when a suit is brought on a joint, or a joint and several contract, against two or more defendants, all of whom are served with process, an amendment of the complaint, striking out the name of one of the defendants, and discontinuing the suit as to him, operates a discontinuance of the entire action, unless the amendment is made on some ground of exemption or some defense personal, and which exonerates him from legal liability, such as coverture, infancy, the statute of limitations, or like defense. — Reynolds v. Simpkins, 67 Ala. 378 ; Kendall v. Lassiter, 68 Ala. 181.
But it is not every case in which the complaint may allege and describe the cause of action as a joint contract, that such amendment will operate a discontinuance. The purpose of the statute, authorizing amendments by striking out, or adding parties, plaintiff or defendant, is to cure defects arising from non-joinder or misjoinder, without having to dismiss the case. *507The statute authorizes the amendment, whenever there is a misjoinder of defendants, where the amendment does not make an entire change of the parties, nor change the form of action, nor substitute an entirely new cause of action.- — Laird v. Moore, 27 Ala. 326 ; Mock v. Walker, 42 Ala. 668; Masterson v. Gibson, 56 Ala. 56.
Only the common counts remained, after the first amendment striking out the special count, which was founded on a sub-contractor’s lien. The common counts, on which the parties proceeded to trial, alleged a joint cause of action against both defendants. On the complaint, as it thus stood, the plaintiff was not entitled to recover on proof of any other than a joint cause of action, or joint contract. The right of recovery, in such case, must not depend on a contract, made by each defendant separately, not jointly, which is inconsistent with, and variant from the complaint. — Walker v. Insurance Co., 31 Ala. 529. On the trial, the evidence tended to show a separate and distinct contract made by each defendant at different times — a separate and several cause of action — and a consequent misjoinder of defendants. To meet this state of the evidence, and to cure the defect of misjoinder, the plaintiff, by leave of the court, amended the complaint by striking out the name of Wright, on the ground that, in view of the evidence, he was not a proper defendant. Though the suit may be against several defendants, and the complaint allege a joint contract; if, from the evidence, it appears that one of the defendants did not in fact make the contract jointly with the others, the complaint may be amended by striking out the name of the person so improperly joined. In such case, the amendment is regarded as a correction of a misdescription of the cause of action. Steed v. McIntyre, 68 Ala. 407. In Jones v. Nelson, 51 Ala. 471, which was a suit on a note, a similar amendment was made, and it was insisted that the action was discontinued as to the other defendants. It is said : “Nor did the court err in -permitting the plaintiff to amend the complaint, by striking out the name of the defendant Nittenhouse Moore. . . ILe was not a maker of the note, and was therefore improperly joined as a defendant. The statute authorizes the striking out or adding parties, plaintiff or defendant; and the purpose was to cure defects of misjoinder of parties, plaintiff or defendant, without turning the case out of court.” The amendment, striking out the name of the defendant Wright, did not, under the circumstances, operate a discontinuance of the action as to the appellant. If the cause of action was separate and several in fact, the amendment was properly allowed. If it was joint, the remaining defendant could have protected himself against a recovery by a proper charge. Affirmed.