Fix change index hook
Fix index change