fix bug with extra comma