Fixed the double binding of the click handler.