Fixed crash

had broken simulation restart