fix the click event