fixed the race condition of the ball parts.