Fixes parsing of file-input.