fix bug of last comma