Maximum call stack size exceeded when cloning entity with animation

Hi,

@yaustar helped me a lot about animation. This time I am cloning an entity with animation, but I got 'Maximum call stack size exceeded when I clone it.

Would you please take a look here? https://playcanvas.com/editor/scene/580848
I made ‘top’ entity and added a script component which creates a child entity with both model and animation. The animation itself works great, but I want to clone the ‘top’ entity but I got the error. I need to clone it including the animation.

Thank you in advance.