When a large planet has a small planet bouncing off it then periodically one of the bounces will be unusually large and bounce it well away from the large planet. I guess that this is a problem where the accelleration is calculated based on the gravitational force at a small distance and that force is considered to apply for one time period even though the object would have bounced off before the time period ended.