fix animate bug