Fixed animations not producing proper events.