Fixed issues with voting caused by registering event handlers multiple times