fixed a bug in optimize restarts: it now used optimizer_array