Fixing bug with extra txt extensions in output report.