fix click event bug