Yes, it is not a glitch. But it is indeed a special value.
It sometimes happens that the backtest balance curve has very little drawdown. Then the maximum gain can be achieved when assigning the full capital to that component. OptimalF is then at 0.999. I would here not use separate OptimalF for long and short, but one OptimalF for both, even if this reduces backtest profit.