Fixed issue with empty sections of input/output files.