I think a lot of American comedies tend to apologize for their bad behavior in the last 10 minutes of the movie.
To me, the script is a living, breathing organism. Comedy is something that is ever-changing and ever-flowing with the vibe and the mood of the movie.