fix extra comma in hash