Fix a segfault that happens when using the -file option.