Transofming label to class name bug fix