 Gene Hackman (qv) was originally cast as Dr. Berger, but had to  bow out. Judd Hirsch (qv) stepped in to fill the role, on  condition that he could complete the filming of his scenes in eight  days, so as not to interfere with his schedule on the TV show  _"Taxi" (1978)_ (qv).