ref #5448 Correctly set sec reference on synonyms and avoid for