Slightly improved the ball collision handling.