Fixed a binding issue with the click event.