shake animation bug fix