fixed indexDestroy