In 1960, Capra bought the screen rights from Columbia for $225,000, and the director made a deal with United Artists, where it was decided to film the story as a period piece set in the 1930s. Capra originally cast Frank Sinatra as Dave the Dude, but the actor walked out due to disagreements about the script. Kirk Douglas, Dean Martin, and Jackie Gleason rejected the role. Then Glenn Ford approached Capra with an offer to help finance the film through his production company if he was cast as the lead. The director felt Ford was wrong for the part but out of desperation he agreed to the arrangement, which called for each of them to receive 37½ percent of the film's profits. Ford was paid $350,000 up front, but Capra received only $200,000. Because the film never earned back its cost, he lost an additional $50,000 in deferred salary.