 Molander, Gustaf (qv) had trouble with the ending. He stopped the  filming for two days without getting any reasonable ideas. Finally,  he asked Bergman, Ingrid (qv) what she would think was the best.  It was she who suggested the present ending.