Changed colgroup logic