Remove trailing commas from some params that cause errors

The trailing commas cause a syntax error.