dealing with 'corrupt' detail file