fixing flickThreshold