Fix trailing comma syntax error