remove some trailing commas