fix $animate 1.3 issue