clean up invalid file.