diff --git a/record-and-playback/presentation/scripts/publish/presentation.rb b/record-and-playback/presentation/scripts/publish/presentation.rb
index b5b29a9961208b8e011ec84f3f18d0459390e3d3..8d5ca074313e1cfdf063a7910b7c5bac5ba8b77f 100755
--- a/record-and-playback/presentation/scripts/publish/presentation.rb
+++ b/record-and-playback/presentation/scripts/publish/presentation.rb
@@ -399,6 +399,7 @@ def processShapesAndClears
                                                         BigBlueButton.logger.info shape
                                                         $shapeType = shape.xpath(".//type")[0].text()
                                                         $pageNumber = shape.xpath(".//pageNumber")[0].text()
+                                                        $shapeDataPoints = shape.xpath(".//dataPoints")[0].text().split(",")
 
                                                         if($shapeType == "text")
                                                                 $textValue = shape.xpath(".//text")[0].text()
@@ -407,7 +408,6 @@ def processShapesAndClears
                                                                 $textFontSize = shape.xpath(".//fontSize")[0].text()
                                                         else
                                                                 $shapeThickness = shape.xpath(".//thickness")[0].text()
-                                                                $shapeDataPoints = shape.xpath(".//dataPoints")[0].text().split(",")
                                                                 colour = shape.xpath(".//color")[0].text()
                                                         end