It seems that ball disable process it´s not correct or somewhere in the code the ball are being activated when shouldn´t be. Although phent_settype (my, 0, ph_sphere); should deactivate the ball, i think you should try phent_enable(my, 0).