fixed multiple match being generated to csv