fixed crash when launching simulation