Fixed animation end detection (again…)