fixed bug with triggering global animations in certain cases