setFitShapeToText problem

I am currently using the older version of Aspose.slides , and the fitTextToShape funtion is not woking as expected. My code looks like this,

tfName = myTable.getCell(0, 6).getTextFrame();
tfName.getParagraphs().get(0).getPortions().get(0).setFontBold(true);
tfName.getParagraphs().get(0).getPortions().get(0).setText(textlabelsHashMap.get("projectValue") +": ");
tfName.setFitShapeToText(true);

Where

textlabelsHashMap.get("projectValue")

returns very long String.