fix bugs on gauge thresholds