During filming for "The Pirate" in April 1948, Garland suffered a nervous breakdown and was placed in a private sanatorium. She was able to complete filming, but in July she made her first suicide attempt, making minor cuts to her wrist with a broken glass. During this period, she spent two weeks in treatment at the Austen Riggs Center, a psychiatric hospital in Stockbridge, Massachusetts. "The Pirate" was released in May 1948 and was the first film in which Garland had starred since "The Wizard of Oz" not to make a profit. The main reasons for its failure were not only its cost, but also the increasing expense of the shooting delays while Garland was ill, as well as because the general public was not yet willing to accept her in a sophisticated film. Following her work on "The Pirate", she co-starred for the first and only time with Fred Astaire (who replaced Gene Kelly after Kelly had broken his ankle) in "Easter Parade" (1948), which became her top-grossing film at MGM.