Stop animation bug fix