remove invalid trailing comma