MR. JUSTICE REYNOLDS
delivered the opinion of the court.
This action was commenced by plaintiff to recover a judgment against defendant for conversion of chattel mortgaged property. Judgment was rendered in favor of plaintiff, and defendant has appealed.
The case was submitted upon an agreed statement of facts, from which the following facts appear: On the fourteenth day of May, 1914, the defendant entered into a written contract with one C. H. Nelson, under the terms of which the latter promised to grow and deliver to defendant sugar beets to be raised on a certain twenty acres of land leased by him in Carbon county, Montana. Pursuant with the terms of the contract he planted the twenty acres to beets, but on the eighth day of September, 1914, by bill of sale, he sold *348to one William Nelson his interest in his lease and beet crop, and thereupon William Nelson went into possession of the land and crop. On the sixteenth day of Septembei’, 1914, William Nelson gave to plaintiff a chattel mortgage upon the crop, which mortgage was duly acknowledged and sworn to so as to entitle it to be filed, and on the seventeenth day of September, 1914, it was filed in the office of the county clerk and recorder of Carbon county, Montana. Defendant did not have any actual notice of the transfer of the lease and crop to William Nelson nor of the giving of the mortgage from William Nelson to plaintiff. At the time of the commencement of this suit, the debt for which the mortgage was security had not been paid. After the filing of the mortgage the beet crop was delivered to defendant at Golden, Carbon county, Montana, and credit was given therefor on the books of defendant company to C. H. Nelson. Payment was made by defendant on November 15 and December 15, 1914, by its cheeks made payable to C. H. Nelson, Mrs. Edward Elge, lessor, and the Bridger State Bank, to which bank at one time C. II. Nelson had given a mortgage but which mortgage was paid. These checks were paid in due course. The mortgage to plaintiff provided that it should cover the crop, “whether in stack, bin, or elevator or aboard cars, in silo or at sugar factory.” On November 14, 1914, plaintiff wrote a letter to defendant, inquiring about the delivery of the beets, which letter was received by defendant after mailing the November check. On November 17, 1914, plaintiff wrote defendant another letter, inquiring whether or not all the beets had been delivered and settled for.
The only question involved in this appeal is whether or not the facts as above mentioned sustain the judgment.
[1,2] Inasmuch as defendant held merely an executory contract for the purchase of the beets in question, it had no vested interest in the beets until delivery was made to it at Golden, Carbon county, Montana. At that time a valid transfer of the crop and lease had been made to William Nelson, who had *349gone into possession of same, and William Nelson had given the mortgage to plaintiff, and it had been duly filed. While defendant did not have any actual notice of the bill of sale to William Nelson and his mortgage to plaintiff, yet the facts above mentioned established constructive notice whereby defendant took possession of the beets subject to plaintiff’s mortgage. There is no question whatever but that a chattel mortgagee may maintain an action of conversion against the purchaser of the mortgaged property upon such purchaser appropriating the property to his own use, the mortgagee having at the time the right of possession of the property, and the obligation for which the mortgage was given being unpaid. (Harrington v. Stromberg-Mullins Co., 29 Mont. 157, 74 Pac. 413.)
It is urged by appellant that the facts in this particular case do not sustain the charge of conversion, for two reasons: (1) Because plaintiff consented to the sale to defendant; and (2) because the statement of facts fails to show that plaintiff was entitled to the possession of the beets at the time of the alleged conversion.
[3] Upon the first contention, this court is unable to say, as a matter of law, that the facts presented in the statement of facts show that plaintiff consented to such sale. If the plaintiff did consent to such sale, then the appropriation of the property would not be unlawful, and action of conversion could not be maintained. This is a question of fact to be submitted to the trial court.
[4] In regard to the second contention, the complaint alleges that plaintiff was entitled to the possession of said crop at the time of its appropriation by defendant for the sole reason that the chattel mortgage provided that in the event the property was removed, or attempted to be removed, from the county of Carbon, plaintiff would then be entitled to immediate possession thereof, and that the beets were shipped from the premises in Carbon county to the defendant in Yellowstone county. The statement of facts, however, fails to bear out the allegations of the complaint as to this feature of the *350case. From the statement of facts it appears that the beets were delivered to the Great Western Sugar Company at Golden, Carbon county, Montana. It fails to show that the beets were shipped from that county or were otherwise removed therefrom, and thus fails to show that plaintiff was entitled to possession thereof as pleaded, which is a necessary element of plaintiff’s case. (Harrington v. Stromberg-Mullins Co., supra.) This results in a fatal variance between the pleading and the proof.
[5] Respondent suggests that, inasmuch as the chattel mortgage contains other provisions whereby plaintiff might be entitled to possession of the crop, the complaint should be deemed amended to conform with the statement of facts in these respects. The proofs referred to relate to the right of the mortgagee to take possession upon default in payment of the obligation by the mortgagor and the provision whereby the mortgagee may take possession upon a sale of the property, both of which contingencies are set forth in the statement of facts. While in some cases the complaint may be deemed amended after trial to conform to the proof, yet such rule cannot be invoked where the amendment involves a change in the issues of the case and does not conform to the theory upon which the case was tried. In this ease the suggested amendment would place plaintiff’s right to possession upon an entirely different basis than that claimed in the complaint, would leave the defendant without any answer to the amended complaint, and the record itself excludes the idea that the case was submitted upon the theory involved in such proposed amendment. Plaintiff therefore must stand upon his complaint as filed, as to an essential allegation of which there is an absolute failure of proof.
For the reasons above stated, the judgment will be reversed, and the cause remanded for new trial.
Reversed and remanded.
Mr. Chief Justice Brantly and Associate Justices ' Cooper, Holloway and Galen concur.
*351On Rehearing.
(Submitted May 31, 1921. Decided June 20, 1921.)
MR. JUSTICE REYNOLDS
delivered the opinion of the court.
Since this case was tried upon an agreed statement of
[6] facts, defendant contends that under the rule applicable to such cases it was the duty of the trial court to apply the law to the facts and render judgment in accordance with the merits of the case as disclosed by the agreed statement of facts, and on the hearing in this court judgment should likewise be entered, or directions given for its entry, and that we should not send the case back to the trial court for a new trial. We are satisfied that this contention is sustained by the great weight of authority and that our duty in this case is to direct entry of such judgment as may be justified by the facts. (City of Jeffersonville v. John Shallcross Co., 35 Ind. 19; Gillett v. Detroit Board of Trade, 46 Mich. 309, 9 N. W. 428; Brown v. Rogers, 61 Ind. 449; Milk Co. v. Eagle Mfg. Co., 47 App. D. C. 191; Benavides v. Benavides (Tex. Civ. App.), 218 S. W. 566; Hurey v. Leavitt, 93 N. J. L. 299, 107 Atl. 457; Hills v. Hopp, 287 Ill. 375, 122 N. E. 510; McGonigle v. Gordon, 11 Kan. 167; Green v. Prince (Tex. Civ. App.), 201 S. W. 200; Big Horn Lumber Co. v. Davis, 14 Wyo. 455, 7 Ann. Cas. 940, 84 Pac. 900, 85 Pac. 1048; Irvine v. Angus, 93 Fed. 629, 35 C. C. A. 501; Roberts v. Corbin, 28 Iowa, 355; Allen v. St. Louis National Bank, 120 U. S. 20, 30 L. Ed. 573, 7 Sup. Ct. Rep. 460; Churchill v. Buck, 102 Fed. 38, 42 C. C. A. 148; Hatfield v. Cabell County Court, 75 W. Va. 595, 84 S. E. 335; 3 Cyc. 451, notes 5 and 6.)
[7] On rehearing it is the prerogative of this court to review the entire case and correct any error that may be apparent, even though such action may not be favorable to *352the movant. Respondent contends that it was an error on the part of this court in holding in its original opinion that there was a fatal variance between the pleadings and the proof. This contention is based upon the proposition that, in a case in which an agreed statement of facts is made and such agreed statement of facts purports to contain all of the evidence, the pleadings become immaterial, except in so far as admissions therein contained are concerned. We deem this contention of merit; for, after the parties to an action have agreed upon all the facts involved in the case, the plaintiff or defendant, as the case may be, is entitled to such judgment as the agreed statement of facts may disclose. (West Roxbury v. Minot, 114 Mass. 546; State Bank v. Norduff, 2 Kan. App. 55, 43 Pac. 312; Willard v. Wood, 135 U. S. 309, 34 L. Ed. 210, 10 Sup. Ct. Rep. 831; Saltonstall v. Russell, 152 U. S. 628, 38 L. Ed. 576, 14 Sup. Ct. Rep. 733; Esty v. Currier, 98 Mass. 500; Scudder v. Worster, 11 Cush. (Mass.) 573.) A few excerpts from the cited cases will clearly disclose the attitude of the various courts upon this proposition:
“Upon an agreed statement of facts, the only question open is whether the plaintiffs can recover upon any form of declaration or in any form of action.” (West Roxbury v. Minot, 114 Mass. 546.)
“The first specification of error is that the petition does not state facts sufficient to constitute a cause of action against plaintiffs in error, and this question is raised in this court for the first time. No objection, either by demurrer or otherwise, was taken in the court below. We do not consider that, under the pleadings in this case, and the fact that the case was tried to the court upon an agreed statement of facts, plaintiffs in error are now in a position to raise this question. The objection now raised is to the form of the petition alone, and all the subsequent pleadings, and the action of the parties in the trial of the cause, were upon the theory that the petition was sufficient. Undoubtedly, after the submission of the case to the court upon the agreed statement • of facts, *353an amendment would have been permitted if the attention of the trial court had been directed to the alleged defect, and it cannot be claimed that the defendants would have been in any manner prejudiced by such amendment. Such being the case, we feel that this court should treat the record as if such amendment was in fact made, and that the judgment ought not to be disturbed for this alleged error. Railroad Co. v. Caldwell, 8 Kan. 244; Pape v. Bank, 20 Kan. 440.” (State Bank v. Norduff, 2 Kan. App. 55, 43 Pac. 312.)
“A statement of facts agreed by the parties, or, technically speaking, a case stated, in an action at law, doubtless waives all questions of pleading, or of form of action, which might have been cured by amendment.” (Willard v. Wood, 135 U. S. 309, 34 L. Ed. 210, 10 Sup. Ct. Rep. 831.)
“A case having been submitted to the circuit court upon a statement of facts agreed by the parties, or case stated, upon which the court was to render such judgment as the law required, all questions of the sufficiency of the pleadings were waived, and the want of an answer was immaterial.” (Saltonstall v. Russell, 152 U. S. 628, 38 L. Ed. 576, 14 Sup. Ct. Rep. 733.)
“But an agreed statement of facts waives all defects in the pleadings, even if the pleadings are referred to as part of the statement, and authorizes such a judgment on the merits as if they were duly presented by proper pleadings.” (Esty v. Currier, 98 Mass. 500.)
“The first question presented, that of proper pleadings and specification of defense, would have been more properly raised had the case taken the ordinary course of a trial by jury. By making a statement of facts, and asking the judgment of this court thereon, the parties are understood to have waived all questions as to the formal pleadings, unless those questions are in direct terms reserved.” (Scudder v. Worster, 11 Cush. (Mass.) 573.)
The question, then, to be determined by this court is whether or not, upon the agreed statement of facts, plaintiff *354is entitled to recover, regardless of the pleadings. In the original opinion we held that plaintiff could not recover because it did not appear from the agreed statement of facts that the crop in question had been removed from Carbon county, and that therefore plaintiff was entitled as mortgagee to the possession thereof. The mortgage, which is made a part of the agreed statement of facts, discloses that there were other contingencies upon the happening of which plaintiff would become entitled to the immediate possession of the crop, among which are included such instances as the making of a claim on the crop by any other person or persons, any disposition of the crop, or the harvesting of the crop. The agreed statement of facts shows the existence of each of the three grounds of right to possession above mentioned, and therefore the agreed statement of facts does show upon its face that plaintiff was entitled to the possession of the crop. This supplies the defect in plaintiff’s ease due to variance between pleading and proof, as pointed out in the original opinion, and completes plaintiff’s right of action.
In the original opinion, in discussion of proposed amendment, we stated that the record itself excludes the idea that .the ease was submitted on the theory involved in such proposed amendment. In that expression we had reference to the theory of the case as disclosed by the pleadings. In looking at the matter upon the basis of the theory of the case as disclosed by the agreed statement of facts, our conclusion is necessarily different from what it would be in reaching a result based upon the theory involved in the pleadings. We are therefore of the opinion that, upon the agreed statement of facts, plaintiff is entitled to recover in this action.
The order heretofore entered in this ease is overruled, and it is ordered that the judgment be affirmed.
Affirmed.
Mr. Chief Justice Brantly and Associate Justices Cooper, Holloway and Galen concur.