Meryl Streep was originally cast in the role of Ted's one-night stand, eventually played by JoBeth Williams. When Kate Jackson was contractually unable to accept the role of Joanna, it was offered to Streep.