fixes rowspan issue in generalized version