fix cxAnimate index from 0-(n-1)