Exit animation bug fix