fix trailing comma separator