Fix row labels when omitting empty rows/columns