Hi, In the code above, if element is in headerCell, it's overwrite with null, the test is missing. Code: public static JRElement getElementByKey(JRCrosstab crosstab, String key) { JRElement element = null; if (crosstab.getHeaderCell() != null) { element = crosstab.getHeaderCell().getElementByKey(key); } element = getHeadersElement(crosstab.getRowGroups(), key); if (element == null)