Fix ID references in the OPF file