fixed stopAnimating issue