Fixed calculation of startTime with startTimeOffset