fix extra comma issue