bug fixes in repeated index in animator