The projects Fitzgerald worked on included two weeks' unused dialog work on loanout to David Selznick for "Gone with the Wind" (1939) for which he received no credit, and, for MGM, revisions on "Madame Curie" (1943) which also went uncredited. His only screenplay credit is for "Three Comrades" (1938). He also spent time during this period working on his fifth and final novel, based on film executive Irving Thalberg. Fitzgerald often ignored scriptwriting rules, writing prose and description more fitting for a novel, annoying the studio. In 1939, MGM terminated the contract, and Fitzgerald became a freelance screenwriter. During his work on "Winter Carnival" (1939), Fitzgerald went on another alcoholic binge and was treated by New York psychiatrist Richard H. Hoffmann.