Some trivia that I read
According to one of my many books about Laurel & Hardy's films, the final scene in the film where Stan is uncharacteristically exacting his revenge on Ollie was borne of the fact that Stan's daughter (in real life), as a little girl, was terrified of Ollie because all she ever saw was Ollie picking on her daddy. So, according to the book, Stan and Ollie wrote the final scene to show that Stan was capable of defending himself. And I think that they reasoned that if little Lois was so horrified of seeing the punishment that Stan had always received at the hand of Ollie, that many of the viewers might have had the same feeling.
As I said, this is something that I had read. I can't attest to its authenticity.