fix click event with ID error