clear invalid file