remove bad trailing comma