fix a bug in animate.py