Fixed overlapping balls in ball generation.