fixed animation recursion