fixes parent checkbox is checked when no children
fixes parent checkbox is checked when no children