Fixed bug on line 193 (output filenames)