Handle broken AMRs (duplicate variable names) gracefully