Fix "rowspan" counting error