Fixed a segfault in the -input part of the startup.