Fix samplePeriod