When Shaw wrote the 1938 movie, which won him a best screenplay Oscar, the studio was not happy with the unromantic ending. The ending was changed and, to Shaw's annoyance, returned to Higgins. “They made the musical based on the movie and preserved the happy ending.