stack overflow when animation complate