Fix Animation Bug

Fix #1740