Correct handling bad file name.