major fix simulation get stuck solved