Fixed issue of displaying multiple input and output files