wrong adding of class to checkbox / radio group