fix animate issue