fixed addRowClass bug (was reversed)