fixed error on click binding