fixed memory leaks in animation