There is an issue when I backtest this algorithm where it will say after a while of backtesting line 10 messed up and 6 items were killed. I have no idea how this is messed up, it all looks correct.