More fixes in simulation refreshing.