 Lubitsch disliked Gottfried Reinhardt and S.N. Behrmans original  screenplay so he commissioned a rewrite from Billy Wilder, Charles  Brackett and Walter Reisch. Lubitsch himself made some significant  uncredited contributions to the screenplay.