Fixed bad names of output files