fixed addRowClass bug