Fixed bug: ball = 0
Fixed bug: ball = 0