Remove bad code from index