fix animate duration issue