diff --git a/src/SaxParser.cpp b/src/SaxParser.cpp
index 0354f50dec00fa62c50f86a2dcac0db33de89748..83b2d8c4f7e56d32d6d7b29967602f5db268f3ce 100644
--- a/src/SaxParser.cpp
+++ b/src/SaxParser.cpp
@@ -1542,7 +1542,7 @@ bool SaxParser::ParseTxtFormat(const QString &fileName, SyncData* dataset, doubl
           while ( !in.atEnd() )
           {
                QString line = in.readLine();
-               if(line[0] == "#")  // looking for framerate
+               if(line.startsWith("#"))  // looking for framerate
                {
                     if(line.split(":").size()==2)
                     {
diff --git a/src/TimerCallback.cpp b/src/TimerCallback.cpp
index e44274b8dca376975fefad119b55259444bea53b..da7b799c9912ca9410b2dc1135c8b414bc2371a0 100644
--- a/src/TimerCallback.cpp
+++ b/src/TimerCallback.cpp
@@ -84,7 +84,7 @@
 #include <vtkVectorText.h>
 #include <vtkFollower.h>
 #include <vtkLine.h>
-#include <vtkTubeFilter.h>
+#include <vtkCellArray.h>
 
 #include "geometry/FacilityGeometry.h"
 #include "geometry/Point.h"