fix duplicate rows in computeRowSpan