fix assign class. Incorrect count index of last element.
fix assign class. Incorrect count index of last element.