delivered the opinion of the court:
Appellant began this action on the case in the circuit court of LaSalle county in December, 1913, against appellees, who were doing business as co-partners as Charles Dorris & Co., and Emanuel Davis, to recover damages for personal injuries sustained on account of -the alleged negligence of the appellees. The trial was had before a jury in the circuit court and appellees were found guilty and the damages assessed at $5500. On motion a new trial was granted. The trial judge thereafter entered an order on the pleadings, reversing certain rulings formerly made by the circuit court. After these rulings on the pleadings, and the parties abiding by their pleadings, the court dismissed the suit and entered a judgment of nil dicit and for costs, and that judgment was affirmed by the Appellate Court for the Second District. A certificate of importance being issued by the Appellate Court, the cause is brought here by appeal.
The original declaration, consisting of three counts, states appellant’s cause of action substantially as follows: That appellees, Dorris & Co., were the owners of and constructing a certain brick building in the city of Streator on December 20, 1911; that the contract for the construetion of this building, including the brickwork, had been let to Emanuel Davis; “that said Davis had been engaged for the construction of the same and on the day aforesaid was in the completion of said construction; that the plaintiff was a contractor in steam-heating and general plumbing, and prior to the day aforesaid had undertaken the contract from said defendants, Charles Dorris, Thomas Basil-ion, George Dorris and James Geovanes, partners, etc., of putting in and installing the steam-heating and plumbing in said building, and was on the day aforesaid engaged in so putting in and installing said steam-heating and plumbing in said building; that it was the duty of said employers [naming them] to use all reasonable care to furnish a reasonably safe place for said plaintiff, and the men working under him in his said employ, to work, in so far as the construction of said building, aside from said installing of said steam-heating and plumbing, was concerned, and to use reasonable care to provide that the erection of said building was so carried on and the work of those erecting the same was so performed that the said premises where the plaintiff and those under him were compelled to work, as aforesaid, would be reasonably safe for said plaintiff and those undeT him.” The declaration further alleged that Emanuel Davis, to whom the contract for the construe-, tion of the building in question, 'including the brickwork, had been let, on the day in question was engaged in the construction of said building; that appellees, regardless of their duty and neglecting the same, carelessly allowed and permitted a number of . bricks, in the construction of said building to remain in a loose, dangerous and unstable condition, so that they were liable to fall and precipitate themselves upon the premises immediately below, and that by reason thereof, while plaintiff was engaged in the performance of his duty and in the exercise of all due care and caution for his own safety, and while he was necessarily passing out of a door in said building, said bricks at or near the top of the wall of the building became dislodged and fell upon appellant, severely injuring him. Appellees first filed general demurrers to the declaration, which were overruled. They thereupon filed the general issue and three special pleas. Appellant filed a special demurrer to the special pleas, which was sustained. Thereafter appellant dismissed the suit as to Davis, and during the first trial before the jury, on leave granted, added an additional count to the declaration, the same eliminating all allegations as to Davis. The count alleged, in substance, that appellees were erecting a two-story and basement brick building and employed appellant to do the work of installing the plumbing and heating; that it was the duty of the appellees to use reasonable care to furnish him a reasonably safe place to work; that they violated that duty, and that by reason thereof appellant, while performing his duty and in the exercise of. ordinary care, was injured by some bricks falling down off one of the walls upon him. Thereafter appellees filed the general issue and plea of the two years’ Statute of Limitations to the aforesaid additional count, to which plea of the Statute of Limitations the appellant demurred. Arguments were heard upon this demurrer as to said plea of the Statute of Limitations before one judge and the demurrer was sustained. The appellees then stood by their plea. Later, before another judge, a jury trial was held, with the result, as to the verdict, as heretofore stated. The second judge, on his own motion, after granting a motion for new trial, vacated the former order overruling the demurrer to the original declaration (the plea of general issue being still on file to the declaration) and sustained said demurrer to the declaration and vacated the previous order entered by the first judge sustaining the demurrer to the plea of the Statute of Limitations, and overruled said last mentioned demurrer. Appellant then abided by his declaration and appellees by their plea of the Statute of Limitations, and the court dismissed the suit.
The sustaining of the demurrer to the original declaration and the overruling of the demurrer to the plea of the Statute of Limitations are assigned as error. In our judgment it clearly appears from the original declaration, and each-count thereof, that appellees, members of the firm of Dorris & Co., were owners of the building in question which was in process of erection at the time of the injury; that Emanuel Davis, who was dismissed from the case, had entered into a contract with Dorris & Co. for the construction of said building, including the brickwork; that Davis was carrying out this construction and erecting said building on the location chosen by appellees in Streator, according to the plans furnished him by appellees; that appellant, also a contractor, had entered into a contract with Dorris & Co. to install a steam-heating plant. We can draw no other inference from the allegations of the original declaration than that both appellant and Davis were independent contractors. We find no facts in the original declaration from which any inference might be drawn that appellees had control of the work that was being done by either of these contractors or by the men employed by them to do the work. Appellant and Davis were not working under the direction of appellees but under the provisions of their respective contracts, and they were in no sense, accorcjing to the original declaration, servants of the owners of the building.
Counsel for appellant state that the substantial and material allegation of the declaration with- reference to appellant and appellees was that appellant was engaged as an employee of appellees. We cannot agree that the original declaration in any way fairly so alleges. The declaration alleged that appellant was a contractor, but we find no allegation which states, either directly or by inference, that he was an employee of appellees. All the allegations of the-original declaration are consistent with the conclusion that appellant was an independent contractor and not an employee in the sense that that word must be used here in order to allow a recovery under the original declaration.
Counsel for appellant also argue that the allegations of the original declaration do not show that Davis was an independent contractor. The declaration clearly alleges that Davis was a contractor and that the work of constructing the building, save the plumbing and heating, was let to Davis, a contractor and builder. It also alleges that appellees had plans and specifications made for their proposed new building, - and that the work by both appellant and Davis, contractors, was to be done in accordance with such plans and specifications. We think it necessarily follows, from the wording of the original declaration, that both Davis and appellant were independent contractors and that neither of them was an employee of appellees.
Counsel for the appellant earnestly and at length argue that the counts of the original declaration, construed most favorably to appellant, contain allegations sufficient, by implication at least, to charge appellees with a violation of the alleged common law duty the breach of which was the proximate cause of the injury, which counsel argue was sufficiently stated in the original declaration. We cannot so hold. If the original declaration stated a cause of action, even though defectively, and the amended declaration only stated the same cause of action more in detail, then there can be no question that the identity of the matter upon which the suit is founded is fully preserved. (Chicago City Railway Co. v. McMeen,
from which the inference may be drawn that the owners of the building had any control of the work to be done thereon or of the men employed by the contractors to do the work. These contractors were working under contract and not under the direction of the owners of the building and were in no sense their servants. The original declaration charged that it was the duty of appellees to use reasonable care to furnish plaintiff with a reasonably safe place in which to work. No other duty is charged. The original declaration clearly stated a case within a general rule that the owner who contracts for the erection of a building with a contractor or builder who occupies the relation of an independent contractor to said owner, is not liable for injuries resulting from the negligence of such contractor or of his servants or employees. (Scammon v. City of Chicago,
Counsel for appellant also argue that the declaration charges appellant was. directed to do certain work on said premises and that it was the duty of appellees to furnish him a safe place in which to perform the work, and that therefore it was incumbent upon appellees, if they desired to make the defense that appellant and Davis were independent contractors, to plead specially to that effect. In view of the allegations of the original declaration, as already stated, to the effect that Davis and appellant were independent contractors and were employed as such by appellees, it was not necessary for appellees to plead a defense which the declaration alleged already existed. The case of Carlson v. Johnson,
Counsel for appellant further question the power and propriety of. the second judge, after verdict of the jury had been set aside and new trial granted, in setting aside and reversing the former rulings as to the pleadings made by the first judge. It is clear that after the motion for new trial was granted the court had the same power with reference to the pleadings and all other matters connected with the trial of the case as it had before the jury trial was had. (20 R. C. L. 317; 14 Ency. of Pl. & Pr. 992; 29 Cyc. 1033; 1 Spelling on New Trial and Appellate Practice, sec. 421.) There can be no question that it is the duty of the court, when it becomes satisfied that an erroneous ruling has been made concerning the sufficiency of a pleading, to set aside such ruling and correct the error. The mere fact that the erroneous order was made on the court’s own motion is of no consequence. At any time before the entering of such final judgment the whole record is before the court, and an erroneous ruling theretofore made may be set aside and the error corrected. (Fort Dearborn Lodge v. Klein,
We find no error in the record. The judgment of the Appellate Court will be affirmed.
Judgment affirmed.
