Fix range estimation bug in FPOptimizer