do not crash on an invalid file.