fix interal double index issue