Removes trailing commas. for #714