bug fix simulation