I keep getting errors that I don't have enough free margin for a trade when I have 2x or more free margin available per interactive brokers.  I'm long equities and long in options and trying to go long on futures.  The algo is trying to place a futures order and the calculation for the initial margin amount seems correct for he futures contract but the free margin calculation is totally wrong.  How can I disable this and force the algo to send the order?

Live Handled Error: Order Error: ids: [51], Insufficient buying power to complete orders (Value:[263710]), Reason: Id: 51, Initial Margin: 18482.15, Free Margin: 14501.492494.