fix animation index