diff --git a/VectoCommon/VectoHashing/Resources/XSLT/SortInputData.xslt b/VectoCommon/VectoHashing/Resources/XSLT/SortInputData.xslt
index 2715e0fcee1d70770955c197cf31b943a2f2d554..1247151435447af97fb355b947040324b3e09e97 100644
--- a/VectoCommon/VectoHashing/Resources/XSLT/SortInputData.xslt
+++ b/VectoCommon/VectoHashing/Resources/XSLT/SortInputData.xslt
@@ -1,4 +1,6 @@
-<!--
+
+<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+	<!--
     This XSL transformation is intended to be applied as first canonicalization step when computing the hash
     for VECTO component data or VECTO job data.
 
@@ -15,9 +17,7 @@
       - sort torque limiation entries 
       - sort gears
       - sort axles
--->
-<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-	<xsl:output omit-xml-declaration="no" indent="yes"/>
+-->	<xsl:output omit-xml-declaration="no" indent="yes"/>
 	<xsl:template match="*">
 		<xsl:element name="{local-name()}">
 			<xsl:apply-templates select="@*|node()"/>
diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/PTOCycleController.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/PTOCycleController.cs
index 5c6e1e946109d9365397d7dea7665f09ebadd796..ae0b89117951da85948703a794296b3c761ada39 100644
--- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/PTOCycleController.cs
+++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/PTOCycleController.cs
@@ -87,7 +87,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
 
 		public Second GetNextCycleTime()
 		{
-			if (CycleIterator.LastEntry && AbsTime.IsEqual(CycleIterator.RightSample.Time)) {
+			if (CycleIterator.LastEntry && AbsTime.IsEqual(Duration)) {
 				return null;
 			}