fix the bug of class/sub-class when editing a ticket, #131, tried #108.