fixed bug with wrong order of checking global animations for click events