Ewell led his corps in the May 1864 Battle of the Wilderness and performed well, enjoying the rare circumstance of a slight numerical superiority over the Union corps that attacked him. In the Battle of Spotsylvania Court House, Lee felt compelled to lead the defense of the "Mule Shoe" on May 12 personally because of Ewell's indecision and inaction. At one point Ewell began hysterically berating some of his fleeing soldiers and beating them over the back with his sword. Lee reined in his enraged lieutenant, saying sharply, "General Ewell, you must restrain yourself; how can you expect to control these men when you have lost control of yourself? If you cannot repress your excitement, you had better retire." Ewell's behavior on this occasion undoubtedly was the source of a statement made by Lee to his secretary, William Allan, after the war that on May 12 he "found Ewell perfectly prostrated by the misfortune of the morning, and too much overwhelmed to be efficient." In the final combat at Spotsylvania, on May 19, 1864, Ewell ordered an attack on the Union left flank at the Harris Farm, which had little effect beyond delaying Grant for a day, at the cost of 900 casualties, about one-sixth of his remaining force.