Fixed compilation problem with new simulator