Fix the loop end condition in the tSparkConnection components.