fixed bug in animate module