fixed a bug that caused the solver to not iterate