Opinion op the Court by
— Reversing
This action when first filed on September 27, 1911, bj appellant, Mary E. Combs, individually and as guardian for the other appellants, who are the infant children of Mrs. Combs by her former husband, James G. Deaton, and the wards of Mrs. Combs, as plaintiffs below against appellee and defendant, Edward Deaton, was an ordinary one in ejectment to recover the title to and possession of a tract of land'in Breathitt county containing 94 2/3 acres which the petition averred was owned by plaintiffs and wrongfully withheld from them by the defendant. The original answer was a denial of plaintiffs’ title and assertion of title in defendant. The case pended upon the docket for a number of years, during which time amended pleadings were filed by both sides to the litigation. In one of the amended petitions it was averred in avoidance .of a. judgment rendered on March 19,1901, in the case of Levy Strong v. William Sebastian and others, then pending in the Breathitt circuit court, under which the land.was sold, and which sale was a chain in defendant’s alleged.title, that the judgment in that case was void for the two reasons, (a) that two . of the infant children therein who were surviving children of James G. Deaton, their father, were over fourteen years of age when that suit was filed and were never summoned as defendants in the cause, and (b) that the judgment was rendered therein after the action .had been dismissed by plaintiff without prejudice on June 21, 1900, about nine months before the judgment was rendered under which the land was sold by the commissioner and bought by the plaintiff in that action, Levy Strong, who was at that tune the husband of Mrs. Comlbs, the appellant, he having married her after the .death of her first husband, James G. Deaton. ■
Answering the amended petition, the defendant denied the invalidity of the judgment in the Strong case, and pleaded laches on the part of plaintiffs as well as title acquired by adverse possession ' of himself and vendors, and in other paragraphs he relied on his right to be subrogated to the rights of Levy Strong, at least to the extent of the unpaid purchase money owed to him by Deaton and for which the land was sold, in the event the court should hold that the judgment in the Strong case, under which defendant claimed, was. void for any reason; and in that event he also alleged that he was a bona fide purchaser in good faith and claimed the right to be adjudged a lien for the taxes which he and his vendors (immediate and remote) ha,d paid on the land ■since the master commissioner’s sale and for lasting valuable improvements which he said he had put upon the land and which materially enhanced ■ its value. He furthermore pleaded that the order in the Strong case dismissing it without prejudice was a clerical misprision and was put upon the docket through oversight or mistake of the clerk and that as a matter of fact it- was never made or authorized by the plaintiff in that suit or his attorney, but if that was not true then, he pleaded that plaintiffs herein and defendants therein waived the order of dismissal by filing .
.It is first insisted-by plaintiffs that the attáck made .herein on the judgment in the Strong case is- a-direct one,-while defendant-contends that it is a collatéral one, and the determination of that question is our first task. An examination of -the adjudged cases, as well as text writers dealing with the subject; will demonstrate that the question as to whether an attack on a’judgment is a direct or a collateral one is frequently attended with much difficulty, but we -have adopted the rule which is applied-by the great majority of courts, that a proceeding which has for its sole purpose the vacation- or nullification; of the attacked judgment is a direct attack, but if any .other relief is sought and the setting aside of the judgment is incidental to that relief then the attack is a collateral one. Some of the latest cases from this court dealing with the question and determining it as indicated are: Baker v. Baker, etc., 162 Ky. 694; Harrod v. Harrod, 167 Ky. 308; Crider v. Sutherland, 186 Ky. 7, and Gardner v. Howard, 197 Ky. 615. Many other cases are cited in the opinions of this court in the cases referred to, and in the Harrod case, following the- same rule as laid down in the Baker case,.it was held that a direct attack on a judgment can only be made in the ■manner pointed out in the Code; “that is to -say, by prosecuting an appeal or by proceedings had under the Code and in the manner pointed out in sections 344, 414' and 518 for the modification or vacation of judgments. An attack made on a judgment'in any other way is a
At .this point it is strongly insisted by defendant’s counsel that the presumption in favor of judgments of courts of record and of general jurisdiction renders it necessary before a judgment will be declared void in a collateral attack for the record to affirmatively show the avoid matter rendering the judgment of no effect and the pleading making such attack must affirmatively allege that the record so shows, and it is urged that there is no such allegation by plaintiffs in this case in their pleading ¿Racking the judgment in the Strong case. We can not agree with this contention since plaintiffs’ pleading attacking that judgment says that it is void for the reasons therein pointed out and it refers to the record as showing the matter rendering it void, and especially is this true with reference to the order of dismissal and the failure of the court to thereafter rein- • state the case. It is true that the word “affirmatively” is not employed in the pleading, but its substance and effect was that the record in the Strong case affirmatively-showed the order of dismissal of that case and that it was never reinstated.
The universal rule as we find it stated in test books and adjudged cases is that a court has no jurisdiction ‘ to render any order in a cause after its dismissal, until the dismissing order is in some recognized manner set aside or vacated so as to again bring the parties into the cause, and if a judgment should be rendered with
To avoid the consequences of the dismissal order in the Strong case it is urged by defendant’s counsel that its entry was a clerical misprision which the court could and did correct in this case by expunging it from the record. The .trouble with that position is that if we should concede that the entry of such an order could be classed as a clerical misprision (which we very much doubt), then we would still be confronted with the uni
Without, then, considering the .question of limitation against the right to correct the judgment in this case at this late, day, we must hold that there was nothing in the record by which the alleged clerical misprision, in entering-the dismissal 'order could be corrected, and that the court was without jurisdiction to expunge that order from the Strong case upon a motion made for that purpose in this case. We, therefore, hold that the judgment in the Strong case, and under which the land was sold, was void for the reason that it was rendered after the cause was dismissed and without any appropriate action taken to correct that order. There was, therefore, no cause pending at the time of the alleged answer filed
That the defendant has. the right to be subrogated to the rights of Strong as against James G. Deaton, and his heirs, the plaintiffs in this case, we entertain no doubt. 24 Cyc. 70-71; 16 R. C. L. 105, and Forst v. Davis, 101 Ky. 343. Independently, however, of adjudged cases or text authority upon the subject, we would have no trouble in concluding that under the general rules of equity as applicable to the doctrine of subrogation defendant is entitled to all the equitable rights to which Strong would be entitled had he retained the land under the commissioner’s deed. "When that deed is avoided, as has been done in this opinion, the parties should be placed in statu quo as nearly as possible. Plaintiffs can not claim the land without paying the purchase money therefor, and since Strong has been paid by his vendee and presumptively defendant paid full consideration when he purchased it, he should .not lose that consideration without plaintiffs being required to discharge the lien which defendant’s remote vendor held against the property. It is preeminently a case for the application of the doctrine of subrogation; but in extending to him that right he will be entitled to no more than Strong would be if he was the defendant and claiming title to the land. If, therefore, Strong has in any manner been paid, or there is any offset against his debt for unpaid purchase money, as is contended in plaintiffs’ pleading, he would have no lien except for the balance due him, if any, since there would be no debt in his favor to which defendant could be subrogated, for his right grows out of and is dependent upon that of Strong.
We are also of the opinion that defendant is entitled to a lien upon the land for permánent improvements which enhanced its value. It was so held in the Forst case, supra, under facts essentially the same as those found in this one. A late case discussing the right to a lien for betterments or improvements is that of Loeb v. Conley, 160 Ky. 91. The opinion in that case approves the doctrine applied by this court in a number of prior’
The right to a lien in favor of a bona fide purchaser who permanently improves, the purchased premises in the good, faith belief that he is the true owner of the perfect title has a fixed place in equity jurisprudence and chancery courts have long since recognized and enforced it. If the right could- be defeated by constructive notice alone, such as is furnished by the public records, then the instances would indeed be rare when the right could be invoked, because in the great majority of cases a will or a deed which contained the matter destroying the supposed perfect title, was of record and being a link in the chain of the purchaser’s title, he would have constructive notice of its contents, and his lien would be defeated although he had no actual knowledge of any impairment of his title and acted in the most perfect good faith in making the improvements. To follow the holding of the courts that allow constructive notice to defeat the lien would in our judgment practically destroy the equitable right. It is true that to enforce it, except in cases of actual notice, sometimes works a hardship on the true owner of the title, but the same result sometimes follows the strict -and literal enforcement of all statutes and legal principles. In cases of the kind we have here this objection might be obviated by postponing the lien on the land or its proceeds until the owner was. paid, or satisfied for the reasonable market value of the premises immediately before the improvements were made where he was not estopped by his conduct from claiming the right. We have not seen, however, where any court has adopted the suggestion and we advance it only as such without any purpose or intention of its adoption at this time.
We are, therefore, of the opinion that defendant should have a lien for any permanent improvements made upon the land by him to the extent of the enhancement of its value. He is also entitled to be subrogated
'Wherefore, the judgment is reversed with directions to set it aside and for proceedings consistent with this opinion.