fixed bug with animations