Fix bug in API, fooling with ngAnimate