Fixed canAnimate condition