Remove invalid trailing comma