small bug in sim