fix logic in ToggleBall commands to stop constant on and off switching