bug fix click event