Fixed so that compounds do not refer to themselves
Compound issue resolved
Finished hotfix fix_compounds.
Finished hotfix fix_compounds.