fixed bug with events defined to start and stop global animations