delete bad index