fixed bug with switching tabs when something is animated within tabs