Clean up invalid file