fixed weird ball behavior