fixing animate bugs