Fixed ClassCastException when clicking a checkbox