fix critical bug in Ball