fix($animate): fix errors broken after the recent rewrite