Fixed a small ball painting issue